<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Menu extends Model
{
    //
    protected $guarded = [];
    public function children()
    {
        return $this->hasMany($this,'pid')->orderBy('sort','asc');
    }
}
